﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;

namespace Billing
{
    public static class KeyHelper
    {
        public static void ProcessKey(Window window)
        {
            window.KeyDown += delegate(Object Sender, KeyEventArgs e)
            {
                if (e.Key == Key.RightCtrl)
                {
                    MessageBox.Show("sdfds");
                }
            };
        }

        static void window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            if (e.Key == Key.F1 && (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl))
            {
                MessageBox.Show("sdfds");
            }
        }
    }
}
